package com.coderman.domainservice.member.domain.gataway;

import com.coderman.domainservice.member.domain.model.user.entity.IndicesStatisticsBO;
import com.coderman.domainservice.member.domain.model.user.valueobject.IndiceEnum;

import java.util.List;
import java.util.Map;

/**
 * Description:
 * date: 2021/3/31
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 * 统计服务
 */
public interface IndicesStatisticsService {

    /**
     * 更新统计项数值+增加
     * @param indiceEnum 统计项枚举
     * @param userId
     * @param incre  是否是递增
     */
    void updateIndicesStatistics(IndiceEnum indiceEnum, long userId,boolean incre);

    /**
     * 获取某个用户下的数据统计项
     * @param userId
     * @return
     */
    List<IndicesStatisticsBO> getIndicesStatistics(long userId);
}
